﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WeChat.AspNet.Events
{
    public class SubscribeEventArgs : UserEventArgs
    {
        public SubscribeEventArgs(Hashtable values) : base(values)
        {
            var et = (string) values["Event"];

            Type = et.ToEnum<SubscribeType>();
        }
        /// <summary>
        /// subscribe(订阅)、unsubscribe(取消订阅)
        /// </summary>
        public SubscribeType Type { get; set; }
    }

    public enum SubscribeType
    {
        Subscribe,

        Unsubscribe
    }
}
